package com.yunyao.framework.service;

import com.yunyao.common.dto.PoSyupplyDto;
import com.yunyao.common.dto.excel.SupplyExcelDto;
import com.yunyao.common.web.util.PageResult;
import com.yunyao.common.web.util.YResult;

import com.yunyao.framework.dto.posyupply.PoSosyupplySaveDto;
import com.yunyao.framework.dto.posyupply.PoSosyupplyUploadedDto;
import com.yunyao.framework.vo.posupply.PoSyupplyVo;
import com.yunyao.framework.vo.posupply.PoSyupplyinfoVO;
import com.yunyao.framework.vo.sosyupply.SoSupplinfoVO;

import java.util.List;

/**
* 供货清单
* */
public interface PoSyupplyService {
    /**
     * 获取供货清单列表
     * @param poSyupplyDto
     * @return
     * */
    YResult<PageResult<PoSyupplyVo>> pageList(PoSyupplyDto poSyupplyDto);
    /**
     * 根据Id获取供货清单信息
     * @param id
     * @return
     * */
    YResult<PoSyupplyinfoVO> getPoSupplyById(String id);

    /**
     * 保存供货清单列表信息
     * @param saveDto
     * @return
     * */
    YResult<String> saveInfo(PoSosyupplySaveDto saveDto);

    YResult<String> uploade(PoSosyupplyUploadedDto saveDto);

    /**
     * 根据id删除供货清单信息
     * @param saveDto
     * @return
     * */
    YResult<Boolean> deleteInfo(PoSosyupplySaveDto saveDto);
    List<PoSyupplyinfoVO> getSupplyByapplyId(String id);

    YResult<String> audit(PoSyupplyDto orderDto);


    List<SupplyExcelDto> export(PoSyupplyDto poSyupplyDto);
}
